#pragma once
#ifndef MATERIAL__EDITOR__STARTUP__INCLUDED__HH__
#define MATERIAL__EDITOR__STARTUP__INCLUDED__HH__

#include "ui_startpage.h"

namespace Lit
{
	namespace Editor
	{
		class MaterialEditor;
		namespace Material
		{
			class StartupDialog : public QDialog
			{
				Q_OBJECT

			protected:
				Ui::ProjectStartPage	ui;
				MaterialEditor *		mEditor;
				QSignalMapper *			mMapper;
				bool eventFilter( QObject * obj, QEvent * evt );

			protected slots:
				void on_newProj_clicked();
				void on_openProj_clicked();

				void on_loadRecentProj( const QString& str );

				void on_newProj_focus();
				void on_openProj_focus();

			public:
				StartupDialog(MaterialEditor*parent=NULL);
				~StartupDialog(void);
				
				int exec();
			};
		};
	};
};

#endif